#ifndef OBJ2D_H
#define OBJ2D_H

#include "vec2d.h"

namespace ePhys {

	enum OBJ_TYPE2D {
		OBJ_NULL,
		OBJ_MESH2D,
		OBJ_CIRCLE2D
	};

	class obj2d
	{
	public:

		virtual OBJ_TYPE2D type(void) { return OBJ_NULL; }

		virtual vec2d getPosition(void) { return pos; }
		virtual void setPosition(vec2d p) { pos.set(p); }

		virtual vec2d getRotation(void) { return rot; }
		virtual void setRotation(vec2d p) { rot.set(p); }

		virtual inline bool isInside(vec2d p) { return false; }

		inline void setStatic(bool s) { sttc = s; }		
		inline bool isStatic(void) { return sttc; }		

		vec2d vel, rvel, center;

	protected:
		vec2d pos, rot;
		bool sttc;

	};

}

#endif
